package P1888;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();
        int max = ((a>b?a:b)>c)?(a>b?a:b):c;
        int min = ((a<b?a:b)<c)?(a<b?a:b):c;
        for (int i= (int)Math.pow(max,0.5); i > 0 ;--i){
            if (max % i ==0 && min% i ==0){
                max /= i;
                min /= i;
                break;
            }
        }
        System.out.println(min+"/"+max);
    }
}
